package modex;

public class Terme {

	private int idTerme = 0;
	private String terme = "";
	// Nb total de paragraphes contenant ce terme
	private int nbParagraphes = 0;
	
	public Terme() {}
	public Terme(int id, String t, int nbPara) {
		this.idTerme = id;
		this.terme = t;
		this.nbParagraphes=nbPara;
	}
	
	public int getIdTerme() {
		return idTerme;
	}

	public void setIdTerme(int idTerme) {
		this.idTerme = idTerme;
	}

	public String getValueTerme() {
		return terme;
	}

	public void setValueTerme(String terme) {
		this.terme = terme;
	}
	
	public int getNbParagraphes() {
		return nbParagraphes;
	}
	public void setNbParagraphes(int nbParagraphes) {
		this.nbParagraphes = nbParagraphes;
	}
	@Override
	public String toString() {
		String str = "TERME " + this.getIdTerme() + 
						" = "+ this.getValueTerme()+ "\n";
		return str;
	}	
}
